import java.util.Scanner;
import java.util.Random;
public class test5 {
    public static void main(String[] args) {
        Scanner s=new Scanner(System.in);
        Random rand=new Random();
        int num1=rand.nextInt(1000);
        System.out.println("请输入1~1000中的一个数字：");
        for(int i=1;i<=100;i++){
            
           
            int num2=s.nextInt();
            if(num1>num2){
                System.out.println("太小了！");
                System.out.println("请继续输入：");
                continue;
            }
            if(num1<num2){
                System.out.println("太大了！");
                System.out.println("请继续输入：");
                continue;
            }
            if(num1==num2){
                System.out.println("恭喜你猜对了！");
                break;
            }
            if(i==10){
                System.out.println("你太笨了，下次再来吧！");
                break;
            }
   
        }
         s.close();
       
    }
}